﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Slb.Ocean.Petrel.DomainObject.Shapes;
using System.Drawing;
using Slb.Ocean.Core;
using Slb.Ocean.Petrel.UI;

namespace Public.Ocean.Petrel.Extensions.DomainObject
{
    public static class GeoReferencedImageExtensions
    {
        public static Bitmap GetBitmap(this GeoReferencedImage image)
        {
            return CoreSystem.GetService<IGeoReferencedImageService>().GetBitmap(image);
        }

        public static void SetBitmap(this GeoReferencedImage image, Bitmap value)
        {
            CoreSystem.GetService<IGeoReferencedImageService>().SetBitmap(image, value);
        }
    }
}
